package com.gouqi.lpl.controller;

import com.gouqi.lpl.domain.PersionalStatistics;
import com.gouqi.lpl.service.PersionalStatisticsService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

@RestController
@RequestMapping("/personalStatistics")
public class PersionalStatisticsController implements Serializable {

    @Resource
    private PersionalStatisticsService persionalStatisticsService;

    @RequestMapping("/get")
    public List<PersionalStatistics> getPersionalStatistics() {
        List<PersionalStatistics> persionalStatisticsList = persionalStatisticsService.getPersionalStatistics();
        return persionalStatisticsList;
    }

    @RequestMapping("/get-order")
    public List<PersionalStatistics> getPersionalStatisticsByOrder() {
        List<PersionalStatistics> persionalStatisticsList = persionalStatisticsService.getPersionalStatisticsByOrder();
        return persionalStatisticsList;
    }

}